import request from '@/utils/request'

// 查询车辆调度管理列表
export function listManagement(query) {
  return request({
    url: '/lh/management/list',
    method: 'get',
    params: query
  })
}

// 查询车辆调度管理详细
export function getManagement(scheduleId) {
  return request({
    url: '/lh/management/' + scheduleId,
    method: 'get'
  })
}

// 新增车辆调度管理
export function addManagement(data) {
  return request({
    url: '/lh/management',
    method: 'post',
    data: data
  })
}

// 修改车辆调度管理
export function updateManagement(data) {
  return request({
    url: '/lh/management',
    method: 'put',
    data: data
  })
}

// 删除车辆调度管理
export function delManagement(scheduleId) {
  return request({
    url: '/lh/management/' + scheduleId,
    method: 'delete'
  })
}
// 车辆调度完成
export function completeManagement(scheduleId) {
  return request({
    url: '/lh/management/complete/' + scheduleId,
    method: 'get',
    
  })
}